import { App } from 'vue';
import Cookies from 'js-cookie';
import locale from 'element-plus/es/locale/lang/zh-cn';
import ElementPlus from 'element-plus';
import elementIcons from '@/components/SvgIcon/svgicon';
import { Vue3SeamlessScroll } from 'vue3-seamless-scroll/dist/vue3-seamless-scroll.es.js';
import { setupVxe } from './vxe-setup';
import BaseModelForm from '@/components/BasicModalForm';
import 'element-plus/dist/index.css';




export function registerGlobComp(app: App) {


  setupVxe(app);
  app.use(BaseModelForm);
  app.use(elementIcons);
  app.component('Vue3SeamlessScroll', Vue3SeamlessScroll);
  app.use(ElementPlus, {
    locale: locale,
    size: Cookies.get('size') || 'default',
  });
}
